package com.sunjob.mrosystem.logrecorder;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-08-02 9:58
 */
@Component
public class LogRecorderFactoryImpl implements LogRecorderFactory {
    @Autowired
    KafkaTemplate<String, Object> kafkaTemplate;

    @Override
    public LogRecorder build() {
        LogRecorder logRecorder = new LogRecorder();
        logRecorder.setKafkaTemplate(kafkaTemplate);
        return logRecorder;
    }
}
